package com.atguigu.test.demo;

public class Demo {

    public static void main(String[] args) {
        new Demo().sale();
    }

    public void sale() {
        Fruit fruit = new Fruit();
        Thread shopThread = new Thread(new FrontShop(fruit));
        Thread netThread = new Thread(new NetShop(fruit));

        shopThread.start();
        netThread.start();

    }
}
